//
function register() {
    // let na = document.querySelector('.name')
    // let na = document.getElementsByClassName("name").value;
    let na = document.getElementsByClassName("name")[0].value
    console.log(na);
    let pa = document.getElementsByClassName('pass')[0].value;
    console.log(pa);
    let re = document.getElementsByClassName('pwdc')[0].value;
    paa = pa.toUpperCase();
    ree = re.toUpperCase();
    if (na === '') {
        alert('用户名不能为空，请重新填写');
        return;
    }

    else if (pa === '' || re === '') {
        alert('密码或重复密码不能为空，请重新填写');
        return;
    }
    else if (pa.length < 6) {
        alert('密码长度不能小于6位');
        return;
    }
    else if (paa != ree) {
        alert('两次输入的密码不相同');
        return;
    }
    alert('注册成功,请牢记用户名和密码');
}